import request from '@/utils/request'

// 查询公积金分摊列表
export function listGjjft(query) {
  return request({
    url: '/basebill/gjjft/list',
    method: 'get',
    params: query
  })
}

// 查询公积金分摊详细
export function getGjjft(fid) {
  return request({
    url: '/basebill/gjjft/' + fid,
    method: 'get'
  })
}

// 新增公积金分摊
export function addGjjft(data) {
  return request({
    url: '/basebill/gjjft',
    method: 'post',
    data: data
  })
}

// 修改公积金分摊
export function updateGjjft(data) {
  return request({
    url: '/basebill/gjjft',
    method: 'put',
    data: data
  })
}

// 删除公积金分摊
export function delGjjft(fid) {
  return request({
    url: '/basebill/gjjft/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importGjjft(fids) {
  return request({
    url: '/basebill/gjjft/importGjjft/' + fids,
    method: 'get'
  })
}
